<div id="ourclients" class="inner-tabs-panel">
    <div class="inner-content">
        <div class="panel">

            <div class="panel-heading">
                <div class="panel-title"> Our Client <code class="help">Slug : #ourclients</code></div>
            </div>
            
            <div class="panel-body wo-flag">
                 <div class="form-group">
                    <div class="slider">
                        <input type="checkbox" id="enable-ourclients" class="toggle-settings" name="theme_options[ourclients][enable]" value="1" <?php echo  (isset($aOurClients['enable']) && !empty ($aOurClients['enable']) ) ? 'checked' : ''; ?>>
                        <label for="enable-ourclients">Enable Our Clients</label>
                    </div>
                </div>  
            </div>

<!--             <div class="option-title">
                <div class="control-button">
                    <div class="slider" id="checker">
                        <input type="checkbox" id="enable-ourclients" name="theme_options[ourclients][enable]" value="1" <?php echo  (isset($aOurClients['enable']) && !empty ($aOurClients['enable']) ) ? 'checked' : ''; ?>>
                    </div>
                </div>      
            </div> -->

            <div class="panel-body">
                <h4>Paralax</h4>
                <div class="form-group">
                    <?php $clientParallax = isset($aOurClients['parallax']) && !empty($aOurClients['parallax']) ? $aOurClients['parallax'] : WO_ADMIN_IMG  . 'no-img.jpg'; ?>
                    <div class="image-wrap">
                        <span><img src="<?php echo $clientParallax; ?>" width="350"></span>
                    </div>
                    <br>
                    <a class="btn btn-white upload-img" data-insertlink=".wo-insert-link" data-append=".image-wrap">Get image</a>
                    <input class="insertlink" type="hidden" value="<?php echo  isset($aOurClients['parallax']) ? $aOurClients['parallax'] : ""; ?>" name="theme_options[ourclients][parallax]">
                </div>
            </div>
            <div class="panel-body">

                    <div class="form-group">
                        <label class="form-label"> Title </label>
                        <!-- <span class="help">[e.g. "Our Service"]</span> -->
                        <div class="controls">
                            <input type="text" class="form-control" name="theme_options[ourclients][title]" value="<?php  echo isset($aOurClients['title']) ? stripslashes($aOurClients['title']) : ""; ?>">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="form-label">Short Description</label>
                        <div class="controls">
                            <input type="text" class="form-control" name="theme_options[ourclients][short_description]" value="<?php  echo isset($aOurClients['short_description']) ? stripslashes($aOurClients['short_description']) : ""; ?>">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="form-label">Description</label>
                        <div class="controls">
                            <textarea class="form-control" name="theme_options[ourclients][description]"><?php  echo isset($aOurClients['description']) ? stripslashes($aOurClients['description']) : ""; ?></textarea>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="form-label">Choose Client</label>
                        <div class="controls">
                            <?php
                            $aPostMetaTestimonial = $this->wo_get_custom_post_content('qva_ourclients');

                            if ( empty($aPostMetaTestimonial) )
                            {
                                ?>

                                <p>Opp! You haven't created any post yet.
                                    <a  class="help" href="<?php echo admin_url('edit.php'); ?>?post_type=qva_ourclients">Create some</a>
                                </p>

                            <?php
                            }else
                            { 
                            ?>
                            <select name="theme_options[ourclients][content]">
                                <?php

                                foreach ( $aPostMetaTestimonial as $k => $postTestimonial ) : setup_postdata($postTestimonial);

                                        if (isset($aOurClients['content']) && !empty($aOurClients['content']) && $aOurClients['content'] == $postTestimonial->ID )
                                        {
                                            $selected = 'selected';
                                        }else{
                                            if ($k == 0)
                                            {
                                                $selected = 'selected';
                                            }else{
                                                $selected = '';
                                            }
                                        }

                                        ?>
                                        <option value="<?php echo $postTestimonial->ID; ?>" <?php echo $selected ?> ><?php echo $postTestimonial->post_title; ?></option>
                                    <?php
                                        $selected = "";
                                endforeach;wp_reset_postdata();
                               
                                ?>
                            </select>
                            <?php  } ?>
                        </div>
                    </div>

            </div> <!--/end section1 of ourservices -->

        </div>
    </div>
</div>